// 权限判断
import permission from './libs/function/permission';
// 节流
import throttle from './libs/function/throttle';
// 防抖
import debounce from './libs/function/debounce';
// 唯一id
import guid from './libs/function/guid';
// dayjs
import dayjs from './libs/function/dayjs';
// serial
import serial from './libs/function/serial';
// $parent
import $parent from './libs/function/parent';
// distance
import distance from './libs/function/distance';
// updateBack
import updateBack from './libs/function/updateBack';
// audio
import audio from './libs/function/audio';
// getOption
import getOption from './libs/function/getOption';
// theme
import theme from './libs/theme';

const $w = {
	permission,
	throttle,
	debounce,
	guid,
	dayjs,
	serial,
	$parent,
	distance,
	updateBack,
	getOption
}

const install = Vue => {
	Vue.prototype.$audioController = audio;
	Vue.prototype.$w = $w;
	Vue.mixin({
		computed: {
			$theme() {
				return theme
			}
		}
	})
}

export default {
	install
}